{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">作者申请列表</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <hr>
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>用户uid</th>
                        <th>用户名</th>
                        <th>手机</th>
                        <th>邮箱</th>
                        <th>状态</th>
                        <th>申请时间</th>
                        <th>申请介绍</th>
                        <th>微信</th>
                        <th>保障金</th>
                        <th width="60px">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="author_list" item="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.uid}</td>
                        <td>{$vo.nickname}</td>
                        <td>{$vo.phone}</td>
                        <td>{$vo.email}</td>
                        <td>{php}echo $vo['status']==1 ? '启用' : '禁用';{/php}</td>
                        <td>{$vo.created_at}</td>
                        <td>{$vo.introduce}</td>
                        <td>{$vo.weixin}</td>
                        <td bgcolor="red">{php}echo $vo['is_buy']>=1 ? '已付' : '未付';{/php}</td>
                        <td>
                            <a href="{:url('admin/author/is_pass',['id'=>$vo['id'],'uid'=>$vo['uid'],'status'=>3])}" class="layui-btn layui-btn-normal layui-btn-mini">同意</a>
                            <a href="{:url('admin/author/is_pass',['id'=>$vo['id'],'uid'=>$vo['uid'],'status'=>4])}" class="layui-btn layui-btn-normal layui-btn-mini">拒绝</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <!--</form>-->
                <!--分页-->
                {$author_list->render()}
            </div>

        </div>
    </div>
</div>
{/block}